package Texas.Test;

import org.junit.*;
import Texas.*;

public class WhiteBoxTest {
	private Player _player;
	private Table _table;
	
	@Before public void setUp() {
		_player = new Player("Test");
		_table = new Table(_player, 3);
	}
	
	@Test public void testCall() {
		try {
			_player.call(100);
			_player.call(1000);
		} catch (Exception e) {
			System.out.println(e);
		}
	}

	@Test public void testRaise() {
		try {
			_player.raise(200,100);
			_player.raise(1000,200);
		} catch (Exception e) {
			System.out.println(e);
		}
	}	
	
	@Test public void testAllIn() {
		try {
			_player.allIn(100);
			_player.allIn(1000);
		} catch (Exception e) {
			System.out.println(e);
		}
	}
	
	@Test public void testDealCards() {
		_table.dealCards(0);
		_table.dealCards(5);
		
		_table.dealCards(1);

		_table.collectCards();
		
		_table.dealCards(2);
		_table.dealCards(3);
		_table.dealCards(1);
		_table.dealCards(1);
	}
}
